.header {
  width: 85%;
  min-height: 320px;
  left: 245px;
  position: relative;
}

.header .top-nav {
  position: relative;
  z-index: 100;
  padding: 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.header .top-nav .login-btn {
  height: 40px;
  padding: 0 25px;
  left: 24%;
  z-index: 100;
}

.header .middle-section {
  position: relative;
  z-index: 100;
  width: 80%;
  margin: 20px auto;
  transform: translateY(20px);
}

.header .swiper-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
}

.header .swiper-container .swiper-container {
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}

.header .avatar-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header .avatar-wrapper .user-avatar {
  width: 45px !important;
  height: 45px !important;
}

@media (max-width: 768px) {
  .header {
    min-height: 400px;
  }
  .header .top-nav {
    padding: 10px;
  }
  .header .top-nav .login-btn {
    padding: 0 15px;
  }
  .header .middle-section {
    width: 90%;
    margin-top: 10px;
  }
}

.user-avatar {
  object-fit: cover;
}

.user-popup {
  position: absolute;
  right: 10px;
  top: 40px;
  width: 320px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 16px;
}

.user-popup .popup-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.user-popup .popup-header .user-info .name {
  font-weight: 500;
  font-size: 16px;
}

.user-popup .popup-header .user-info .user-id {
  color: #666;
  font-size: 12px;
}

.user-popup .popup-header .user-tag {
  background: #f0f6ff;
  color: #2254f4;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.user-popup .storage-info {
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.user-popup .storage-info .storage-item {
  text-align: center;
}

.user-popup .storage-info .storage-item .value {
  font-size: 18px;
  font-weight: 500;
}

.user-popup .storage-info .storage-item .label {
  color: #666;
  font-size: 12px;
}

.user-popup .membership-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.user-popup .membership-status .status {
  color: #666;
}

.user-popup .vip-section {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.user-popup .vip-section .vip-card {
  background: #f6f7f9;
  border-radius: 4px;
  padding: 12px;
  margin: 8px 0;
}

.user-popup .vip-section .vip-card h4 {
  margin: 0;
  font-size: 14px;
}

.user-popup .vip-section .vip-card p {
  margin: 4px 0 0;
  color: #666;
  font-size: 12px;
}

.user-popup .vip-section .upgrade-btn {
  margin-top: 12px;
}

.user-popup .settings-section {
  padding-top: 12px;
}

.user-popup .settings-section .setting-item {
  padding: 8px 0;
  cursor: pointer;
}

.user-popup .settings-section .setting-item:hover {
  color: #2254f4;
}

.user-popup .settings-section .setting-item.logout {
  color: #ff4d4f;
  border-top: 1px solid #eee;
  margin-top: 8px;
  padding-top: 12px;
}

.avatar-wrapper {
  position: relative;
  cursor: pointer;
  z-index: 1001;
}
